<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html style="">
<style>

    html{
        background-image:url(${ctxStatic}/images/bg.jpg)
    }
</style>
<head>
	<title><spring:message code="common.welcome"/></title>
	<meta name="decorator" content="default"/>
    <style>
        .form-horizontal .control-label{
            float: left;
            font-size: 16px;
        }
        .form-horizontal .controls{
            padding-top: 3px;
            width:160px;
            margin-left: 10px;
            overflow-x: hidden;
            float: left;
            font-size: 16px;
        }
    </style>
</head>
<body >
<div  >
    <img src="${ctxStatic}/images/bg.png" style=" position: absolute; bottom: 0; z-index: -1; "/>
    <label style="display: block;margin-top: 50px;margin-left: 80px;font-size: 28px;font-weight: 500;"><spring:message code="common.welcomeyou"/></label>
	<form:form id="inputForm" modelAttribute="user" method="post" class="form-horizontal" cssStyle="margin-top: 60px;margin-left: 150px;">
        <div class="control-group">
            <label class="control-label"><spring:message code="common.name"/>:</label>
            <div class="controls">
              ${user.name}
            </div>
        </div>
        <div class="control-group">
			<label class="control-label"><spring:message code="common.phone_number"/>:</label>
			<div class="controls">
				${user.mobile}
			</div>
		</div>
        <div class="control-group">
            <label class="control-label"><spring:message code="common.authority"/>:</label>
            <div class="controls">
                ${user.roleNames}
            </div>
        </div>
        <c:if test="${user.userType != 1 }">
        <div class="control-group">
            <label class="control-label"><spring:message code="common.expirydate"/>:</label>
            <div class="controls">
                <fmt:formatDate value="${user.avaliDate}" pattern="yyyy年MM月dd日"/>
            </div>
        </div>
        </c:if>
        <c:if test="${user.role.dataScope >=4}">
            <div class="control-group">
                <label class="control-label">上级维护人员:</label>
                <div class="controls">
                    ${operate.name}
                </div>
                <label class="control-label"><spring:message code="common.phone_number"/>:</label>
                <div class="controls">
                   ${operate.mobile}
                </div>
            </div>
        </c:if>

        <c:if test="${user.role.dataScope >=3}">
            <div class="control-group">
                <label class="control-label">上级区域管理员:</label>
                <div class="controls">
                  ${checkUser.name}
                </div>
                <label class="control-label"><spring:message code="common.phone_number"/>:</label>
                <div class="controls">
                   ${checkUser.mobile}
                </div>
            </div>
        </c:if>
        <c:if test="${user.role.dataScope >=2}">
            <div class="control-group">
                <label class="control-label"><spring:message code="common.administrator"/>:</label>
                <div class="controls">
                  ${admin.name}
                </div>
                <label class="control-label"><spring:message code="common.phone_number"/>:</label>
                <div class="controls">
                   ${admin.mobile}
                </div>
            </div>
        </c:if>
	</form:form>
</div>
</body>
</html>